package com.xbongbong.saas.domain.dao;

import com.xbongbong.saas.domain.entity.ClueWorkLogEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ClueWorkLogDao {

    Integer insert(ClueWorkLogEntity clueWorkLogEntity);
    Integer update(ClueWorkLogEntity clueWorkLogEntity);

    void insertBatch(List<ClueWorkLogEntity> clueWorkLogList);

    Integer deleteByKey(@Param("key") Integer key, @Param("corpid") String corpid);
    ClueWorkLogEntity getByKey (@Param("key") Integer key, @Param("corpid") String corpid);

    List<ClueWorkLogEntity> findEntitys(@Param("param") Map<String, Object> param);
    Integer getEntitysCount(@Param("param") Map<String, Object> param);

    /**
     * 获取Image不为空且不为空数组的数据（改image格式，脚本用）
     * @return
     */
    @Deprecated
    List<ClueWorkLogEntity> getImageNotNull4Script();

    /**
     * 修改Image为附件格式（脚本用）
     * @return
     */
    @Deprecated
    Integer updateBatchImageFormat4Script(@Param("list") List<ClueWorkLogEntity> list);
}
